package com.feng.cloud.order;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author Better Feng
 * @Date 2020/1/6 21:01
 * @Version 1.0
 **/
@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private TestProperties testProperties;

    @GetMapping
    public String test() {
        return testProperties.getUsername();
    }
}
